package day06;

import java.util.Arrays;
import java.util.List;

public class LambdaTest {

    public static void main(String[] args) {
//
//        Runnable runnable = () -> System.out.println("我服了");
//
//        runnable.run();
//
//        Comparator<Integer> comparator = Comparator.comparingInt(o -> o);
//
//        int i = comparator.compare(12, 25);
//
//        System.out.println(i);
//
//        Person person = name -> System.out.println("name：" + name);
//
//        person.setName("cc");
//
//        Student student = new Student();
//        student.checkName();

        List<Man> manList = Arrays.asList(new Man(12, "xx"), new Man(13, "xx"), new Man(5, "cc"));
        PersonUtils.formatManByAge(manList).forEach(System.out::println);
    }

}
